<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
	/**
	* Set the Radio-Buttons Invisble
	*/
	function invisbleRadio() {
		// do nothing
	}

	/**
	 * Deactivates the show, edit and delete button.
	 */
	function deactivateButtons() {
		// do nothing
	}
</script>

<html:form>
	<div id="pictureTable">
	<table class="contentTable">
			<tr>
				<td><bean:message key="label.modelName" /></td>
				<td>${sessionScope.carForm.car.modelName} </td>	
			</tr><tr>
				<td><bean:message key="label.yearOfManufacture" /></td>
				<td>${sessionScope.carForm.car.yearOfManufacture}</td>
			</tr><tr>
				<td><bean:message key="label.enginePerformance" /></td>
				<td>${sessionScope.carForm.car.enginePerformance}</td>
			</tr><tr>
				<td><bean:message key="label.engineSize" /></td>
				<td>${sessionScope.carForm.car.engineSize}</td>				
			</tr><tr>					
				<td><bean:message key="label.manufactureCompany" /></td>
				<td>${sessionScope.carForm.car.manufactureCompany}</td>
			</tr><tr>
				<td><bean:message key="label.descriptionText" /></td>
				<td>${sessionScope.carForm.car.descriptionText}</td>	
			</tr><tr>			
				<td><bean:message key="label.crew" /></td>
				<td>${sessionScope.carForm.car.crew} </td>
			</tr><tr>
				<td><bean:message key="label.measurementsLength" /></td>
				<td>${sessionScope.carForm.car.measurementsLength}</td>
			</tr><tr>
				<td><bean:message key="label.measurementsHigh" /></td>
				<td>${sessionScope.carForm.car.measurementsHigh}</td>
			</tr><tr>		
				<td><bean:message key="label.measurementsWidth" /></td>
				<td>${sessionScope.carForm.car.measurementsWidth}</td>
			</tr>
		</table>
	</div>
	<div id="pictureBox">
		<a href="${sessionScope.carForm.car.imageURL}" rel="thumbnail"><img src="${sessionScope.carForm.car.imageURL}" class="picture"/></a>
		<br /><bean:message key="text.zoom" />
	</div>

	<div id="twoElementsTable">
		<table class="linkedElementsTableTwo">
				<tr>
			<th><bean:message key="label.linkedDeptsToCar" /></th>
			<th><bean:message key="label.linkedEquipsToCar" /></th>
		</tr><tr>
			<td>
				<c:forEach var="department" items="${sessionScope.carForm.departments}"
					varStatus="rowStatus">
					${department.zipcode} ${department.city}<br />
				</c:forEach>
			</td><td>
				<c:forEach var="equipment" items="${sessionScope.carForm.equipments}"
					varStatus="rowStatus">
					${equipment.modelName}<br />
				</c:forEach>
			</td>
		</tr>
		</table>
	</div>
</html:form>